package com.sg.dto.biz.bff.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffMidPlanTargetCycleMenuDto
 * @使用场景
 */
@Data
public class BffMidPlanTargetCycleMenuDto implements Serializable {

    /**
     * 被评对象目标周期ID:
     */
    @ApiModelProperty("部门周期下目标ID")
    private String evaObjTargetCycleId;

    /**
     * 被评对象内容表主键ID:
     */
    @ApiModelProperty("一级部门ID")
    private String evaObjEntityId;

    /**
     * 目标周期来自内容ID:
     */
    @ApiModelProperty("目标ID")
    private String targetCycleContentId;

    /**
     * 周期ID:
     */
    @ApiModelProperty("周期ID")
    private String cycleId;

    /**
     * 是否父周期:
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否中期:
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;

    /**
     * 周期名称:
     */
    @ApiModelProperty("周期名称")
    private String cycleStandardName;

    /**
     * 目标周期简称:
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;

    /**
     * 周期类型名称:
     */
    @ApiModelProperty("周期类型名称")
    private String cycleTypeName;

    /**
     * 周期类型标识:
     */
    @ApiModelProperty("周期类型标识")
    private String cycleTypeCode;

    /**
     * 目标周期任务进展状态:
     */
    @ApiModelProperty("目标周期任务进展状态")
    private String taskStatus;

    /**
     * 冗余评价模板ID:
     */
    @ApiModelProperty("冗余评价模板ID")
    private String evaluationTemplateId;
    /**
     * 冗余规划类型 GENERAL_PLANNING:常规规划 THEMATIC_PLANNING:专题规划
     */
    @ApiModelProperty("冗余规划类型")
    private String planningType;
    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;
    /**
     * 周期类型实例简称
     */
    @ApiModelProperty("周期类型实例简称")
    private String cycleNumberShortName;

    /**
     * 周期类型实例标识
     */
    @ApiModelProperty("周期类型实例标识")
    private String cycleTypeInstanceCode;

    /**
     * 冗余目标ID
     */
    @ApiModelProperty("冗余目标ID")
    private String targetId;
    /**
     * 冗余评价主题ID
     */
    @ApiModelProperty("冗余评价主题ID")
    private String evaluationSubjectId;

    /**
     * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffMidPlanTargetCycleMenuDto that = (BffMidPlanTargetCycleMenuDto) o;
        return evaObjTargetCycleId == that.evaObjTargetCycleId && evaObjEntityId == that.evaObjEntityId && targetCycleContentId == that.targetCycleContentId && cycleId == that.cycleId && isParentCycle == that.isParentCycle && isMetaphase == that.isMetaphase && cycleStandardName == that.cycleStandardName && cyclelAlias == that.cyclelAlias && cycleTypeName == that.cycleTypeName && cycleTypeCode == that.cycleTypeCode && taskStatus == that.taskStatus && evaluationTemplateId == that.evaluationTemplateId && planningType == that.planningType && isSubCycle == that.isSubCycle && cycleNumberShortName == that.cycleNumberShortName && cycleTypeInstanceCode == that.cycleTypeInstanceCode && targetId == that.targetId && evaluationSubjectId == that.evaluationSubjectId && subjectLifeCycle == that.subjectLifeCycle;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), evaObjTargetCycleId, evaObjEntityId, targetCycleContentId, cycleId, isParentCycle, isMetaphase, cycleStandardName, cyclelAlias, cycleTypeName, cycleTypeCode, taskStatus, evaluationTemplateId, planningType, isSubCycle, cycleNumberShortName, cycleTypeInstanceCode, targetId, evaluationSubjectId, subjectLifeCycle);
    }

}
